package com.fyx.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class RequestConfig {
    public static String baseRequestUrl;

    public static String baseRequestUrl1;

    public static String baseRequestUrl2;

    @Value("${base.request-url}")
    public void setBaseRequestUrl(String baseRequestUrl){
        RequestConfig.baseRequestUrl = baseRequestUrl;
    }

    @Value("${base1.request-url}")
    public void setBaseRequestUrl1(String baseRequestUrl1){
        RequestConfig.baseRequestUrl1 = baseRequestUrl1;
    }

    @Value("${base2.request-url}")
    public void setBaseRequestUrl2(String baseRequestUrl2){
        RequestConfig.baseRequestUrl2 = baseRequestUrl2;
    }

}
